﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model.Query_Model.Input
{
    public class DocumentInput
    {
        public event EventHandler<EventArgs> ValidData;

        public string nameDocument
        {
            set
            {
                if (value == null || value == String.Empty)
                    IsEmpty("nameDocument");
            }
        }

        public void IsEmpty(string propertyName)
        {
            if (ValidData != null)
                ValidData(this, EventArgs.Empty);
        }
    }
}
